package com.alatus;

import com.alatus.utils.GameUtil;

public class BottomNum {
    public void newNum(){
        for (int i = 1; i <= GameUtil.MAP_WIDTH; i++) {
            for (int j = 1; j <= GameUtil.MAP_HEIGHT; j++) {
                if(GameUtil.DATA_BOTTOM[i][j] == -1){
                    for (int k = i-1; k <= i+1; k++) {
                        for (int l = j-1; l <= j+1; l++) {
                            if(GameUtil.DATA_BOTTOM[k][l]>=0){
                                GameUtil.DATA_BOTTOM[k][l]++;
                            }
                        }
                    }
                }
            }
        }
    }
}
